package routers

import (
	"group-router/controllers/product"

	"github.com/gin-gonic/gin"
)

func ProductRoutersInit(r *gin.Engine) {
	apiProductR := r.Group("api/product")
	{
		apiProductR.POST("success", product.ProductController{}.Success)
		apiProductR.POST("list", product.ProductController{}.GetProductList)

		apiProductR.POST("add", product.ProductController{}.AddProduct)

		apiProductR.POST("update", product.ProductController{}.UpdateProduct)

		apiProductR.POST("delete", product.ProductController{}.DeleteProduct)

	}
}
